import request from '/@/utils/request';

// 获取物流列表
export function getLogisticsList(params: object) {
    return request({
        url: '/admin/logisticsinfo/index',
        method: 'post',
        params,
    });
}

// 添加物流
    export function addLogistics(params: object) {
    return request({
        url: '/admin/logisticsinfo/add',
        method: 'post',
        data: params,
    });
}

// 编辑物流
export function editLogistics(params: object) {
    return request({
        url: '/admin/logisticsinfo/edit',
        method: 'post',
        data: params,
    });
}

// 删除物流
export function deleteLogistics(params: object) {
    return request({
        url: '/admin/logistics/delete',
        method: 'post',
        data: params,
    });
}